package com.flyaudio.xiaopengautopilot.entity;

public class Consumption {
    private long _id;
    private String date;  //日期
    private String mileage; //行驶里程
    private String totalMileage; //总里程
    private String powerConsumption; //实时电耗

    public Consumption(String date, String mileage, String totalMileage, String powerConsumption, int _id) {
        this._id = _id;
        this.date = date;
        this.mileage = mileage;
        this.totalMileage = totalMileage;
        this.powerConsumption = powerConsumption;
    }

    public Consumption() {}

    public long get_id() {
        return _id;
    }

    public void set_id(long _id) {
        this._id = _id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getMileage() {
        return mileage;
    }

    public void setMileage(String mileage) {
        this.mileage = mileage;
    }

    public String getTotalMileage() {
        return totalMileage;
    }

    public void setTotalMileage(String totalMileage) {
        this.totalMileage = totalMileage;
    }

    public String getPowerConsumption() {
        return powerConsumption;
    }

    public void setPowerConsumption(String powerConsumption) {
        this.powerConsumption = powerConsumption;
    }

    @Override
    public String toString() {
        return "Consumption{" +
                "_id=" + _id +
                ", date='" + date + '\'' +
                ", mileage=" + mileage +
                ", totalMileage=" + totalMileage +
                ", powerConsumption=" + powerConsumption +
                '}';
    }

}
